package com.info.zhiduoduo.repository.entity.maker;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 *
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)  //setter return this;
@ToString
@TableName("zdd_maker_zdd_project_bid")
public class MakerCrowdsourceProjectBid extends Model<MakerCrowdsourceProjectBid> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 项目id
     */
    private Integer projectId;
    /**
     * 创客id
     */
    private Integer userid;
    /**
     * 竞价类型 1.自愿 2.企业分配
     */
    private Integer bidType;
    /**
     * 1.竞标中 2.竞标失败 3.竞标成功
     */
    private Integer state;
    /**
     * 审核备注（失败原因）
     */
    private String verifyRemark;
    /**
     * 竞标时间
     *
     **/
    private Date bidTime;
    /**
     * 审核时间（成功或失败）
     *
     **/
    private Date verifyTime;

    private Date createtime;

    private Date updatetime;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}